<template>
  <div class="recommend">
    <div class="recommend-item"
         v-for="(item, i) in recommends"
         :key="i">
      <a :href="item.link">
        <img :src="item.image"
             alt="">
        <div>{{item.title}}</div>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  name: 'HomeRecommend.vue',
  props: ['recommends']
}
</script>

<style lang="less" scoped>
.recommend {
  display: flex;
  text-align: center;
  padding: 15px 0 25px 0;
  border-bottom: 10px solid #eee;
  .recommend-item {
    flex: 1;
    font-size: 14px;
    img {
      width: 70px;
      height: 70px;
      margin-bottom: 10px;
    }
  }
}
</style>